/*
 * XML Type:  InterTransactionResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InterTransactionResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML InterTransactionResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class InterTransactionResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionResponseImpl implements net.ofx.types.x2003.x04.InterTransactionResponse
{
    
    public InterTransactionResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INTERRS$0 = 
        new javax.xml.namespace.QName("", "INTERRS");
    private static final javax.xml.namespace.QName INTERMODRS$2 = 
        new javax.xml.namespace.QName("", "INTERMODRS");
    private static final javax.xml.namespace.QName INTERCANRS$4 = 
        new javax.xml.namespace.QName("", "INTERCANRS");
    
    
    /**
     * Gets the "INTERRS" element
     */
    public net.ofx.types.x2003.x04.InterResponse getINTERRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterResponse target = null;
            target = (net.ofx.types.x2003.x04.InterResponse)get_store().find_element_user(INTERRS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INTERRS" element
     */
    public boolean isSetINTERRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTERRS$0) != 0;
        }
    }
    
    /**
     * Sets the "INTERRS" element
     */
    public void setINTERRS(net.ofx.types.x2003.x04.InterResponse interrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterResponse target = null;
            target = (net.ofx.types.x2003.x04.InterResponse)get_store().find_element_user(INTERRS$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InterResponse)get_store().add_element_user(INTERRS$0);
            }
            target.set(interrs);
        }
    }
    
    /**
     * Appends and returns a new empty "INTERRS" element
     */
    public net.ofx.types.x2003.x04.InterResponse addNewINTERRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterResponse target = null;
            target = (net.ofx.types.x2003.x04.InterResponse)get_store().add_element_user(INTERRS$0);
            return target;
        }
    }
    
    /**
     * Unsets the "INTERRS" element
     */
    public void unsetINTERRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTERRS$0, 0);
        }
    }
    
    /**
     * Gets the "INTERMODRS" element
     */
    public net.ofx.types.x2003.x04.InterModResponse getINTERMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterModResponse target = null;
            target = (net.ofx.types.x2003.x04.InterModResponse)get_store().find_element_user(INTERMODRS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INTERMODRS" element
     */
    public boolean isSetINTERMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTERMODRS$2) != 0;
        }
    }
    
    /**
     * Sets the "INTERMODRS" element
     */
    public void setINTERMODRS(net.ofx.types.x2003.x04.InterModResponse intermodrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterModResponse target = null;
            target = (net.ofx.types.x2003.x04.InterModResponse)get_store().find_element_user(INTERMODRS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InterModResponse)get_store().add_element_user(INTERMODRS$2);
            }
            target.set(intermodrs);
        }
    }
    
    /**
     * Appends and returns a new empty "INTERMODRS" element
     */
    public net.ofx.types.x2003.x04.InterModResponse addNewINTERMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterModResponse target = null;
            target = (net.ofx.types.x2003.x04.InterModResponse)get_store().add_element_user(INTERMODRS$2);
            return target;
        }
    }
    
    /**
     * Unsets the "INTERMODRS" element
     */
    public void unsetINTERMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTERMODRS$2, 0);
        }
    }
    
    /**
     * Gets the "INTERCANRS" element
     */
    public net.ofx.types.x2003.x04.InterCancellationResponse getINTERCANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterCancellationResponse target = null;
            target = (net.ofx.types.x2003.x04.InterCancellationResponse)get_store().find_element_user(INTERCANRS$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INTERCANRS" element
     */
    public boolean isSetINTERCANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTERCANRS$4) != 0;
        }
    }
    
    /**
     * Sets the "INTERCANRS" element
     */
    public void setINTERCANRS(net.ofx.types.x2003.x04.InterCancellationResponse intercanrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterCancellationResponse target = null;
            target = (net.ofx.types.x2003.x04.InterCancellationResponse)get_store().find_element_user(INTERCANRS$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InterCancellationResponse)get_store().add_element_user(INTERCANRS$4);
            }
            target.set(intercanrs);
        }
    }
    
    /**
     * Appends and returns a new empty "INTERCANRS" element
     */
    public net.ofx.types.x2003.x04.InterCancellationResponse addNewINTERCANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterCancellationResponse target = null;
            target = (net.ofx.types.x2003.x04.InterCancellationResponse)get_store().add_element_user(INTERCANRS$4);
            return target;
        }
    }
    
    /**
     * Unsets the "INTERCANRS" element
     */
    public void unsetINTERCANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTERCANRS$4, 0);
        }
    }
}
